using Microsoft.AspNetCore.Mvc;

namespace blog.Controllers;

public class ProductsController : Controller{

     public IActionResult Edit(int Id)
    {
        return Content(Id.tostring());
    }

    public IActionResult Create(Students stu){
        return Content(stu.name);
    }
}

//外部新建一个学生方法
public class Students(){

    public string name {get;set;}=null!;

    public int age{get;set;}

    public int weight{get;set;}

    public int height{get;set;}
}